package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.Education;
import com.iengoo.inductionms.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
 * Author:huermao
 * 学历表
 **/
@RestController
@RequestMapping("/education")
public class EducationController {
    @Autowired
    private EducationService educationService;
    //获取所以学历
    @GetMapping
    public List<Education> getEducation() {
        List<Education> educationList = educationService.queryAllEducation();
        return educationList;
    }
}
